<?php

$s = time();

ini_set('xdebug.var_display_max_data', '2048');
ini_set('xdebug.var_display_max_depth', '10');
ini_set('memory_limit', '80M');

include '../core/core.php';

CCore::Using('mime.message');
CCore::Using('mime.callbacks.test');

set_time_limit(10);

CCore::Using('base.followers.logger');
CCore::Using('logger.inline');
CCore::Using('logger.file');

$oLogger1 = new CCoreLoggerInline("<br>\n", true);
$oLogger2 = new CCoreLoggerFile('c:/php.core.log.txt');
$oFollower1 = new CCoreBaseFollowersLogger($oLogger1);
$oFollower2 = new CCoreBaseFollowersLogger($oLogger2);
//$oImap->AddFollower($oFollower1);
//$oImap->AddFollower($oFollower2);

//echo '<pre>';
$sFileName = 'files.testMails/uid-04.eml';
//$sFileName = 'files.pop3server/uid-02.eml';
//$sFileName = 'files.pop3server/uid-03.eml';
//$sFileName = 'files.pop3server/uid-04.eml';
//$sFileName = 'l:/Large e-mails/00000002-1.EML';
//$sFileName = 'l:/Large e-mails/00000002.EML';
//$sFileName = 'l:/Large e-mails/00000001.EML';

//$test = file_get_contents($sFileName);

$oCallbackClass = new CCoreMimeCallbacksTest();
$oCallbackClass = null;

$oMime = new CCoreMimeMessage();
//$oMime->ParseFromFile($sFileName, $oCallbackClass);
$oMime->ParseFromFile($sFileName);

//var_dump($oMime);

